
import ajax from '@/router/request'

export const courseCategory = (temp) => ajax('/api/courseCategory/listCourseCategory', temp, 'GET')
export const listNotice = (temp) => ajax('/api/notice/list', temp, 'GET')
export const listOrder = (temp) => ajax('/api/order/list', temp, 'GET')
export const listWork = (temp) => ajax('/api/exam/selectWorkHistory', temp, 'GET')
export const listIndexWork = (temp) => ajax('/api/exam/listWork', temp, 'GET')
export const listExam = (temp) => ajax('/api/exam/listWork', temp, 'GET')
export const getUserInfo = (temp) => ajax('/api/student/getCurrentUserInfo', temp, 'GET')
export const getUserCourse = (temp) => ajax(`/api/course/getMyCourse/${temp}`, {}, 'GET')
export const myCourseList = (temp) => ajax('/api/courseCategory/listMyCourseCategory', temp, 'GET')
export const updateInfo = (temp) => ajax('/api/student/updateInfo', temp, 'POST')
export const sendMessage = (temp) => ajax('/api/student/sendMessage', temp, 'GET')
export const changePassword = (temp) => ajax('/api/student/changePassword', temp, 'POST')
export const questionList = (temp) => ajax('/api/question/list', temp, 'GET')
export const cancelOrder = (temp) => ajax('/api/order/cancelOrder', temp, 'POST')



